package com.example.OnlineStorage.pojo.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.math.BigInteger;

@Data
public class FileSha256 {

    @Schema(description = "文件SHA-256记录ID", example = "1")
    private Long id;

    @Schema(description = "文件的SHA-256哈希值")
    private String SHA256;
    
    @Schema(description = "该文件大小")
    private BigInteger size;
    
    @Schema(description = "文件被引用的次数")
    private BigInteger count;
    
    public FileSha256(){
    
    }
    public FileSha256(String SHA256, BigInteger size) {
        this.SHA256 = SHA256;
        this.size = size;
    }
    public FileSha256(String SHA256, BigInteger size, BigInteger count) {
        this.SHA256 = SHA256;
        this.size = size;
        this.count = count;
    }
}
